/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月27日         Root.Lu
 */

package com.coocaa.launcher.framework.launcherhost.statusbar;

import com.coocaa.x.uipackage.BaseView;

import android.content.Context;
import android.view.Gravity;
import android.view.View;

public abstract class StatusBarPluginView extends BaseView {
    private String name = null;

    public StatusBarPluginView(Context context, String name) {
        super(context);
        // TODO Auto-generated constructor stub
        this.name = name;
        setFocusable(false);
        setFocusableInTouchMode(false);
    }

    public final String getName() {
        return name;
    }

    @Override
    public final void addView(View child) {
        // TODO Auto-generated method stub
        super.addView(child, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
                Gravity.CENTER));
    }

    public abstract int getConfigGravity();

}
